//
// Created by iguilty on 2022-01-13.
//

#include "Strategy.h"
#include <iostream>
using namespace std;

Strategy::Strategy() {}
Strategy::~Strategy() {
    cout<<"~Strategy......"<<endl;
}

void Strategy::AlgrithmInterface() {}

ConcreteStrategyA::ConcreteStrategyA() {}
ConcreteStrategyA::~ConcreteStrategyA() {
    cout<<"~ConcreteStrategyA..."<<endl;
}

void ConcreteStrategyA::AlgrithmInterface() {
    cout<<"test ConcreteA......"<<endl;
}

ConcreteStrategyB::ConcreteStrategyB() {}

ConcreteStrategyB::~ConcreteStrategyB() {
    cout<<"~ConcreteStrategyB......"<<endl;
}

void ConcreteStrategyB::AlgrithmInterface() {
    cout<<"test ConcreteStrategyB....."<<endl;
}

